package com.elite.service;

import com.elite.entity.Goods;

import java.util.List;


/**
 * Created by hbl on 2017/2/4.
 */
public interface GoodsService {
    void addGoods(Goods goods);

    List searchGoodsByGoodsName(String goodsName);

    List selectGoodsByGoodCategory(String goodCategory);

    List selectGoodsBySellterId(Integer sellerId);

    List selectByGoodsId(Integer goodsId);

    List selectGoods();

    Goods selectByPrimaryKey(Integer goodsId);

    /**
     * 通过goodsid来更新内容
     * @param goods
     */
    void changeGoods(Goods goods);

    void  deleteByGoodsId(Integer goodsId);

    void updateByPrimaryKey(Goods goods);

}
